package cn.xpg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xpg.entity.OutSales;

public interface OutSalesMapper {
	// 新增销售单
	public int addOutSales(OutSales outSales);

	// 删除销售单
	public int deleteOutSales(@Param("outsales_id") int outsales_id);

	// 查询销售单
	public List<OutSales> getOutSalesList(@Param("product_name") String product_name,
			@Param("currentPageNo") int currentPageNo, @Param("pageSize") int pageSize);

	// 查询销售单行数
	public Object getOutSalesCount(@Param("product_name") String product_name);

	// 获取销售单id
	public OutSales getOutSalesId(@Param("outsales_id") int outsales_id);

	// 修改销售单
	public int updateOutSales(OutSales outSales);
}
